package com.family.pedigree.service;

import com.family.common.core.oss.UploadResult;
import com.family.pedigree.domain.FamilyOss;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <p>
 * 文件管理表 服务类
 * </p>
 *
 * @author forever
 * @since 2024-11-24
 */
public interface IFamilyOssService extends IService<FamilyOss> {

    UploadResult upload(MultipartFile file);

    void download(Long ossId, HttpServletResponse response) throws IOException;

    void delById(Long ossId);
}
